# base image
FROM index.mindcoder.cn/docker/centos/python

# MAINTAINER
LABEL Author="yanjingtu<yanjingtu2008@yeah.net>"

# run command
RUN yum install -q -y git cmake gcc gcc-c++ make python-devel python36-devel
RUN git clone https://gitee.com/yanjingtu/face_recognition.git

RUN pip3 install click cycler itsdangerous Jinja2 kiwisolver MarkupSafe \
    Pillow python_dateutil pyparsing pytz numpy scipy scikit_learn six \
    Werkzeug wheel Flask matplotlib opencv_python dlib face_recognition_models

#pip3 install -r requirements.txt

RUN cd /face_recognition && \
    python3 setup.py install

#CMD cd /face_recognition/examples && \
#    python3 recognize_faces_in_pictures.py

# ports
EXPOSE 5001

# volumes
VOLUME ["/mnt"]

# main command
CMD ["/bin/bash"]

